package cn.com.sd.log.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import cn.com.sd.log.dao.ISystemLogDAO;
import cn.com.sd.log.model.SystemLog;
import cn.com.sd.log.service.ISystemLogService;

@Transactional
@Component(value = "systemLogService")
public class SystemLogServiceImpl implements ISystemLogService{

	@Resource(name = "systemLogDAO")
	private ISystemLogDAO systemLogDAO;
	
	@Override
	public Boolean saveOrUpdate(SystemLog systemLog) {
		try {
			systemLogDAO.saveObject(systemLog);
			return true;
			
		} catch (Exception e) {
			return false;
		}
	}
}
